<script>
export default {
	onLaunch: function() {
		console.log('App Launch');
		wx.getSetting({
		  // scope: 'scope.record',
		  success (res) {
			console.log(res)
			if (!res.authSetting["scope.userInfo"]){
				uni.redirectTo({
					url: "/pages/tabbar/shilu-login/reg"
				})
			}
			
		    // res.authSetting = {
		    //   "scope.userInfo": true,
		    //   "scope.userLocation": true
		    // }
		  }
		})
		setTimeout(() => {
			// uni.setTabBarBadge({
			// 	index: 1,
			// });
		}, 1000);
	},
	onShow: function() {
		console.log('App Show');
	},
	onHide: function() {
		console.log('App Hide');
	}
};
</script>

<style>
/*每个页面公共css */ 
</style>
